<template>
  <div class="div1">
    <div class="div2">
      <div class="title">添加用户</div>
      <div class="div3">
        <addUserForm></addUserForm>
      </div>
    </div>
  </div>
</template>

<script setup>
import addUserForm from "./addUserForm.vue";
</script>

<style scoped>
.div1 {
  flex: 1;
  width: 100%;
  height: calc(100vh - 50px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
}
.div2 {
  width: 80%;
  border-radius: 10px;
  background: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  padding: 5% 5%;
}
.div3 {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.title {
  text-align: center;

  font-weight: 800;
  width: 100%;
  border-bottom: 2px solid;
}
@media (max-width: 450px) {
  .div1 {
    width: 100%;
    height: calc(100vh - 50px);
    display: flex;
    height: calc(100vh - 50px);
    font-size: 0.8rem;
  }

  .div2 {
    width: 100%;
    height: 100%;
  }
}
</style>